import Vue from 'vue'
import VueRouter from 'vue-router'


Vue.use(VueRouter)

  const routes = [
  {
    path: '/',
    redirect: '/home',//重定向
   
  },
  {
    path: '/home',
    name: 'home',
    component: () => import('../views/home/index.vue'),
    meta:{
      isFootShow:true
  }
},
  
  // 6.首页跳转定位页面
  {
      path: '/home/city',
      name: 'home/city',
      component: () => import('../views/home/city/index.vue')
  },
  {
    path: '/home/search',
    name: 'home/search',
    component: () => import('../views/home/search/index.vue')
},
  {
    path: '/home/brand',
    name: 'home/brand',
    component: () => import('../views/home/brand/index.vue')
},
{
  path: '/home/brand/brandlist',
  name: 'home/brand/brandlist',
  component: () => import('../views/home/brand/brandlist/index.vue')
},
{
  path: '/home/goodtop',
  name: 'home/goodtop',
  component: () => import('../views/home/goodtop/index.vue')
},
{
  path: '/home/newgoods',
  name: 'home/newgoods',
  component: () => import('../views/home/newgoods/index.vue'),
  meta:{
      isFootShow:false
  }
},
{
  path: '/home/pinktop',
  name: 'home/pinktop',
  component: () => import('../views/home/pinktop/index.vue')
},
{
  path: '/home/hotGoods',
  name: 'home/hotGoods',
  component: () => import('../views/home/hotGoods/index.vue'),
  meta:{
    isFootShow:false
  }
},
{
  path: '/home/topicdetail',
  name: 'home/topicdetail',
  component: () => import('../views/home/topicdetail/index.vue')
},
{
  path: '/home/newCategoryList',
  name: 'home/newCategoryList',
  component: () => import('../views/home/newCategoryList/index.vue'),
  meta:{
    isFootShow:false
  }
},
  {
    path: '/topic',
    name: 'topic',
    component: () => import('../views/topic/index.vue'),
    meta:{
      isFootShow:true
    }
  },
  {
    path: '/category',
    name: 'category',
    component: () => import('../views/category/index.vue'),
    meta:{
      isFootShow:true
    }
  },
  {
    path: '/category/categorylist',
    name: 'categorylist',
    component: () => import('../views/category/categorylist/index.vue'),
    
  },
  
  {
    path: '/car',
    name: 'car',
    component: () => import('../views/car/index.vue'),
    meta:{
      isFootShow:true
    }
  },
  {
    path: '/car/total',
    name: 'car/total',
    component: () => import('../views/car/total/index.vue'),
    meta:{
      isFootShow:false
    }
  },
  {
    path: '/my',
    name: 'my',
    component: () => import('../views/my/index.vue'),
    meta:{
      isFootShow:true
    }
  },
  {
    path: '/my/address',
    name: 'my/address',
    component: () => import('../views/my/address/index.vue'),
    meta:{
      isFootShow:false
    }
  },
  {
    path: '/my/newcreate',
    name: 'my/newcreate',
    component: () => import('../views/my/newcreate/index.vue'),
    meta:{
      isFootShow:false
    }
  },
  // 我的收藏
  {
    path:'/my/collection',
    name:'/my/collection',
    component:()=>import('../views/my/collection/index.vue'),
    meta:{
      isFootShow:false
    }
  },
  {
    path:"/my/address",
    name:'/my/address',
    component:()=>import('../views//my/address/index.vue'),
    meta:{
      isFootShow:false
    }
  }
]

const router = new VueRouter({
  routes
})

export default router
